<?php
$sql_aviso = "SELECT * FROM noticia WHERE sta_id='1' AND not_tipo='2'";
$res_aviso = sql($sql_aviso);
if (mysql_num_rows($res_aviso)>0){
$linha_aviso = mysql_fetch_array($res_aviso);
?>
<div class="alert alert-<?php echo $linha_aviso['not_status'];?>" style="margin-bottom: 5px;">
    <button type="button" class="close" data-dismiss="alert">x</button>
    <a href="#aviso" data-toggle="modal"><?php echo $linha_aviso['not_nome']; ?></a>
</div>
                
<div class="modal hide fade in" id="aviso" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h3 id="myModalLabel" style="font-size: 120%;"><?=$linha_aviso['not_nome'];?></h3>
    </div>
    
    <div class="modal-body">
    
        <p><?=nl2br($linha_aviso['not_msg']);?></p>
        
    </div>
    
    <div class="modal-footer">
    
        <button class="btn" data-dismiss="modal" aria-hidden="true"><?= $t_fech ?></button>
        
    </div>
    
</div>
<?php } ?>